import request from '@/utils/request'

export function add (parameter) {
  return request({
    url: '/pc/aibaoChannel/add',
    method: 'post',
    data: parameter
  })
}
export function listByPage (parameter) {
  return request({
    url: '/pc/aibaoChannel/listByPage',
    method: 'post',
    data: parameter
  })
}

export function update (parameter) {
  return request({
    url: '/pc/aibaoChannel/update',
    method: 'put',
    data: parameter
  })
}

export function active (data) {
  return request({
    url: '/pc/aibaoChannel/active',
    method: 'post',
    data
  })
}

export function frozen (data) {
  return request({
    url: '/pc/aibaoChannel/frozen',
    method: 'post',
    data
  })
}